<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论页-${site.name}</title>
<meta http-equiv="keywords" content="${content.tagStr!}"/>
<meta http-equiv="description" content="${content.description!}"/>
[#include "../include/head.html"/]
<script type="text/javascript">
$(function($){
	//回复弹出框
	$("a.bc_btn_replay").click(function(){
		var replyDiv = $(this).parents("li").find("div.boutique_comment_replay");
		replyDiv.slideToggle();
		var parentsLi = $(this).parents("li");
		var commentId = parentsLi.find("input[name='commentId']").val();
		Cms.replyList("${base}",parentsLi.find(".bcr_list"),{commentId:commentId});
	});
	
	//关闭回复框
	$("div.bcr_close").click(function(){
		$(this).parents("div.boutique_comment_replay").slideUp();
	});
});
</script>
</head>

<body>
<div id="wrap">
	[#include "../include/navigate.html"/]
    <div id="content">
        <div id="left">
        	<p class="locationB"><span class="black">当前位置：</span><a href="${base}/index.jsp" class="a_green2">《我们》纯文学网</a><span class="location_next">&raquo;</span><a href="${content.url}" class="a_green2">${content.title}</a><span class="location_next">&raquo;</span>评论列表</p>
            <p class="title noBorderBot"><span class="title_text">评论列表</span></p>
			[@cms_comment_page contentId=contentId count='15']
			[#if tag_pagination.list?size = 0]
			<p>暂无相关评论！</p>
			[#else]
			<ul class="boutique_comment">
				[#list tag_pagination.list as c]
				<li><input type="hidden" name="commentId" value="${c.id}"/>
					<div class="boutique_comment_con clearfix">
						<div class="bc_text">
							<p class="bc_text_con">${c.textHtml!}</p>
							<div class="bc_text_info clearfix">
								<p class="bc_text_commenter">
									[#if c.commentUser??]
										<a href="${base}/space.jsp?u=${c.commentUser.id}" class="a_green2">----${c.commentUser.username}</a>
									[#else]
										<a href="###" class="a_green2">----匿名用户</a>
									[/#if] ${c.createTime}</p>
								<p class="bc_text_operate"><a href="javascript:void(0)" class="bc_btn_replay a_orange">回复(${c.replys!'0'})</a></p>
							</div>
						</div>
						<div class="bc_photo">
						[#if c.commentUser??]
							<img src="/images/avatar/small/${c.commentUser.id}.jpg" width="60" height="60" />
						[#else]
							<img src="/images/avatar/small/default.jpg" width="60" height="60" />
						[/#if]
						</div>
					</div>
					<div class="boutique_comment_replay">
						<div class="bcr_pointer"></div>
						<div class="bcr_con">
							<div class="bcr_con_top clearfix"><p class="bcr_title">回复列表</p><div class="bcr_close"></div></div>
							<ul class="bcr_list">
							</ul>
						</div>
					</div>
				</li>
				[/#list]
			</ul>
			<div class="pagination">[@cms_pagination sysPage='1'/]</div>
			[/#if]
			[/@cms_comment_page]
		</div>
		<div id="right">
			<div class="boxC_bar">作者：${content.author!'本站编辑'}</div>
        	[@cms_user id=content.user.id]
            <div class="boxC_con">
            	<img src="/images/avatar/big/${content.user.id}.jpg" width="120" class="editor_pic" />
                <p class="editor_attr">
				性　别：[#if tag_bean.gender??]${tag_bean.gender?string('男','女')}[#else]保密[/#if]<br />
				生　日：[#if tag_bean.birthday??]${tag_bean.birthday?string('yyyy-MM-dd')}[#else]保密[/#if]<br />
				文章数：${tag_bean.issueCount!'0'}篇<br />
				等　级：${tag_bean.group.name}</p>
                <p class="editor_info"><span class="green3">个人简介：</span>${tag_bean.intro!}</p>
                <div class="clear"></div>
            </div>
            [/@cms_user]
        	<div class="boxC_bottom"></div>
            <div class="boxB_bar">本文作者自荐</div>
            <div class="boxB_con">
              [#if content.description?? && content.description!='']	
           	  <p class="editor_desc">${content.description}</p>
           	  [#else]
           	  <p class="editor_desc">无<br/><br/></p>
           	  [/#if]
        	</div>
            <div class="boxB_bar">本文审核评语</div>
            <div class="boxB_con">
              [#if content.attr['editorComments']?? && content.attr['editorComments']!='']	
           	  <p class="editor_desc">${content.attr['editorComments']}</p>
           	  [#else]
           	  <p class="editor_desc">无<br/><br/></p>
           	  [/#if]
        	</div>
            <div class="boxB_bar">作者文章推荐</div>
            <div class="boxB_con">
            	[@cms_content_list authorId=content.user.id recommend='1' count='12' titLen='10' descLen='20' append='...' orderBy='2']
            	[#list tag_list as a]
            	<p [#if a_index == 5 && a_has_next]class="recommend_list rl_line"[#else]class="recommend_list"[/#if]><a href="${a.url}" class="a_green2" title="${a.title}">${a.title}</a></p>
            	[/#list]
            	[/@cms_content_list]
            </div>
            <div class="bar_B"><p class="bar_B_title">最新注册用户</p></div>
            <ul class="active_author">
            [@cms_user_list orderBy='2' count='12']
            	[#list tag_list as u]
				<li><a href="${base}/space.jsp?u=${u.id}"><img src="/images/avatar/small/${u.id}.jpg" width="60" height="60" />${u.username}</a></li>
				[/#list]
            [/@cms_user_list]
            </ul>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    [#include "../include/foot.html"/]
</div>
</body>
</html>
